<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script type="text/javascript">
function a(){
	var a = "123asd1234";
	alert(a.slice(3,7));
}
function PerRefresh() {
     var today = new Date();
     alert("The time is: " + today.toString());
     setTimeout("showTime()",5000);
}
function time(){
		var now = new Date();
		var year = now.getFullYear();
		var mouth = now.getMonth();
		var date = now.getDate();
		var hour = now.getHours();
		var minute = now.getMinutes();
		var second = now.getSeconds();
		var apm = "AM";
		if(hour>12){
		hour = hour-12;
		apm="PM";
		}
		if(second<10){
		second = "0"+second;
		}
		if(minute<10){
		minute = "0"+minute;
		}
		if(hour<10){
		hour = "0"+hour;
		}
		
		alert(year+"年"+mouth+"月"+date+"日"+hour+":"+minute+":"+second+"  "+apm);
	}
	
	function getSelectedText() {
		var a = document.getElementById('a').options[document.getElementById('a').selectedIndex].text;
		alert(a);
	}
	function getSelectedValue() {
		var a = document.getElementById('a').options[document.getElementById('a').selectedIndex].value;
		alert(a);
	}
	function get() {
		alert(a.a.value);
		alert($(":select").val());
	}
</script>
<style>
#notice{
	font-family: "Raleway", sans-serif;
	color:"white";
	text-align:left;
	font-size:7px;
}
</style>

</head>
<body>
<from>
	<div id="notice">
		
		<%-- <button onclick="PerRefresh()"></button>
		<select id="a">
			<option value="a" id="1">1</option>

			<option value="b"id="2">2</option>

			<option value="c" id="3">3</option>
		</select>
		<input type="button"   value="所选文本"   onclick="getSelectedText()" />
		<input type="button"   value="所选值" onclick="getSelectedValue()"/> --%>
	</div>
	</from>
</body>
</html>